home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swagg_m.zip
/
INTERRUP.SWG
/
0005_REG1.PAS.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
598b
|
24 lines
Registers Demo
PB> Procedure GetScreenType (Var SType: Char);
PB> Var
PB> Regs: Registers;
PB> begin
PB> Regs.AH := $0F;
PB> Intr($10, Regs);
PB> if Regs.AL = 7 then
PB> sType := 'M'; <<<<<
PB> else
PB> sType := 'C';
PB> end;
This Procedure would be ideal For a Function...
Function GetScreenType:Char;
...
if Regs.AL=7 then
GetScreenType := 'M'
else
GetScreenType := 'C';
...